Skip to content

JS: remove cookie source; rely on persistent flow steps instead#698

Merged
semmle-qlci merged 3 commits into
github:masterfrom
asger-semmle:remove-cookie-as-source
Dec 19, 2018
Merged

JS: remove cookie source; rely on persistent flow steps instead#698
semmle-qlci merged 3 commits into
github:masterfrom
asger-semmle:remove-cookie-as-source

Conversation

@asger-semmle

@asger-semmle asger-semmle commented Dec 17, 2018

Copy link
Copy Markdown
Contributor

As discussed, we should start to treat cookies as persistent storage flow steps (#629) instead of treating client-side cookie access as remote flow.

Evaluation.

@asger-semmle asger-semmle requested a review from a team as a code owner December 17, 2018 11:01

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I am surprised this did not eliminate more FPs.

This technically requires a change to the change note for #629. Lets make a catch-all change:

  • Support for popular libraries has been improved. Consequently, queries may produce more results on code bases that use the following features:

->

  • Support for popular libraries has been improved. Consequently, queries may produce better results on code bases that use the following features:

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use a different source of remote input in the tests instead? The current change effectively disables the tests.

@asger-semmle asger-semmle force-pushed the remove-cookie-as-source branch from 4b0bb19 to ce18aca Compare December 19, 2018 11:31
@asger-semmle

Copy link
Copy Markdown
Contributor Author

You're right, I was way too quick to just accept the changes as they were. I've force-pushed some udpated tests. PTAL.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. LGTM now.

@semmle-qlci semmle-qlci merged commit 495a1fc into github:master Dec 19, 2018
xiemaisi pushed a commit to xiemaisi/ql that referenced this pull request Jan 9, 2019
github#698 removed `document.cookie` as a remote flow source, which some of the tests relied on. We now use `location.search` instead.
cklin pushed a commit that referenced this pull request May 23, 2022
Release preparation for version 2.8.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants